package com.ph.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ph.pojo.Permission;
import com.ph.pojo.RolePermission;

import java.util.List;

public interface PermissionService extends IService<Permission> {
    List<Permission> permissionTree(Integer roleId);
    boolean checkPermission(RolePermission rolePermission);
    boolean checkParentPermission(RolePermission rolePermission);

    List<Permission> findLevel1ByUserId();
}
